package com.liuyonggang.generator.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liuyonggang.generator.dao.impl.ProjectInfoDal;
import com.liuyonggang.generator.model.ProjectInfo;
import com.liuyonggang.generator.service.ProjectInfoApi;
import com.liuyonggang.generator.util.PageInfo;
import com.liuyonggang.generator.util.ResultVo;

@Service("projectInfoApi")
public class ProjectInfoService implements ProjectInfoApi {

	@Autowired
	private ProjectInfoDal projectInfoDal;
	
	@Override
	public int countModel() {
		return projectInfoDal.countModel();
	}

	@Override
	public List<ProjectInfo> findAll(ProjectInfo task) {
		return projectInfoDal.findAll(task);
	}

	@Override
	public PageInfo<ProjectInfo> findAllByPage(PageInfo<ProjectInfo> pageInfo) {
		return projectInfoDal.findAllByPage(pageInfo);
	}

    @Override
    public ProjectInfo findById(Integer id) {
        return projectInfoDal.findById(id);
    }

    @Override
    public ResultVo addProjectInfo(ProjectInfo projectInfo) {
        return projectInfoDal.addProjectInfo(projectInfo);
    }

    @Override
    public ResultVo updateProjectInfo(ProjectInfo projectInfo) {
        return projectInfoDal.updateProjectInfo(projectInfo);
    }

    @Override
    public ResultVo deleteProjectInfo(ProjectInfo projectInfo) {
        return projectInfoDal.deleteProjectInfo(projectInfo);
    }

}
